<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<div id="top-bar" class="no-print">
	<div class="body-wrapper">
		<nav class="navigation-bar dark">
			<nav class="navigation-bar-content">
				<item class="element"><a href="${contextPath}/"><i class="icon-home on-left"></i>Home</a></item>
				<item class="element place-right">
					<s:if test="%{loginUser.available}">
						<a href="${contextPath}/userlogin/logout">Logout</a>
					</s:if>
					<s:else>
						<a href="${contextPath}/userlogin/signin">Login</a>
					</s:else>
				</item>
				<s:if test="%{loginUser.available}">
					<item class="element place-right">
						<a href="${contextPath}/${loginUser.typeString}/show?id=${loginUser.userId}" class="place-left">${loginUser.name}</a>
						<div class="user-id-image place-left">
			                <span class="icon-user no-display1"></span>
			            </div>
					</item>
				</s:if>
			</nav>
		</nav>
	</div>
</div>